import request from '@/utils/request'

// 查询入库明细记录列表 (分页)
export function selectPageMaterialImportDetail(query) {
  return request({
    url: '/material/materialImportDetail/selectPage',
    method: 'get',
    params: query
  })
}

// 查询入库明细记录列表 (不分页)
export function listMaterialImportDetail(query) {
  return request({
    url: '/material/materialImportDetail/list',
    method: 'get',
    params: query
  })
}

// 查询入库明细记录详细
export function getMaterialImportDetail(importDetailId) {
  return request({
    url: '/material/materialImportDetail/' + importDetailId,
    method: 'get'
  })
}

// 新增入库明细记录
export function addMaterialImportDetail(data) {
  return request({
    url: '/material/materialImportDetail',
    method: 'post',
    data: data
  })
}

// 修改入库明细记录
export function updateMaterialImportDetail(data) {
  return request({
    url: '/material/materialImportDetail',
    method: 'put',
    data: data
  })
}

// 删除入库明细记录
export function delMaterialImportDetail(importDetailId) {
  return request({
    url: '/material/materialImportDetail/' + importDetailId,
    method: 'delete'
  })
}
